<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        input[type] {
            color: blue;
        }
        input[type="password"] {
            color: red;
        }
        div[class^="test"]{
            background-color: yellow;
        }
    </style>
</head>
<body>
    <input type="text" value="Hello World">
    <input type="text">
    <input type="password">
    <div class="test1">123</div>
    <div class="test2">456</div>
    <div class="test3"></div>
    <div class="test4"></div>
</body>
</html>